<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Msglist extends Model
{

    public $timestamps = false;

    protected $table = 'msglist';

    protected $primaryKey = 'msglistID';

    protected $fillable = [
        'msglistID',
        'userID',
        'title',
        'img',
        'msg',
        'extend1',
        'extend2',
        'extend3',
        'extend4',
        'priority',
        'sendID',
        'type',
        'property',
        'isRead',
        'isDel',
        'time',
        'status',
        'msg_oss',
    ];

    public function user()
    {
        return $this->hasOne('App\\Models\\User', 'userID', 'userID');
    }
}
